<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<?php
include_once '../objects/person.php';
session_start();
if (!isset($_SESSION['user'])) {
    header("location: ../../index.php");
} else {
    $user = $_SESSION['user'];
}
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>* SEPC *</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <script language="JavaScript" src="../../js/validations.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap.css">
        <link rel="stylesheet" type="text/css" href="../../style/bootstrap-responsive.css">
        <link rel="stylesheet" type="text/css" href="../../style/styles.css">
    </head>
    <body>
        <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <a href="../../index.php" class="brand"><img src="../../img/sepc_logo.png" alt=""></a>
                    <div class="nav-collapse">
                        <ul class="nav">
                            <li class="nav-header"><h3>:: Registro de Enfermedades :.</h3></li>
                            <li><a></a></li><li><a></a></li><li><a></a></li><li><a></a></li>
                            <li><a></a></li><li><a></a></li><li>
                            <li class="right"><a href="menuadm.php"><?php echo $user->getMail();?></a></li>                            
                        </ul>
                        <form class="navbar-form pull-right" name="" action="../closeConexion.php" method="post" >
                            <button type="submit" class="btn btn-danger"><i class="icon-remove-sign  icon-white"></i> Cerrar Session</button>
                        </form>  
                    </div>
                </div>
            </div>
        </div>
        <br><br>
        <div class="container">
            <div class="row-fluid">
                <legend></legend>
                <div class="span1"></div>
                <div class="span10">
                    <form action="../servlet.php?action=enterDisease" name="enterDisease" method="post" class="form-horizontal" onsubmit="return validateRegDisease(document);" >
                        <table>
                            <tbody>
                                <tr>
                                    <td><label for="namedisease" class="control-label">Nombre de la Enfermedad:</label></td>
                                    <td><input class="input-xxlarge" type="text" name="namedisease" id="namedisease" /></td>
                                </tr>
                                <tr>
                                    <td><label for="symptoms" class="control-label">Sintomas de la Enfermedad:</label></td>
                                    <td class="span10"><textarea class="input-xxlarge" rows="4" type="text" name="symptoms" id="symptoms" ></textarea></td>
                                </tr>
                                <tr>
                                    <td><label for="tratamient" class="control-label">Tratamiento de la Enfermedad:</label></td>
                                    <td class="span10"><textarea class="input-xxlarge" rows="4" type="text" name="tratamient" id="tratamient" ></textarea></td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="form-actions" align="center">
                            <button type="submit" class="btn btn-primary"><i class="icon-check icon-white"></i> Registrar</button>
                            <a href="menuadm.php" class="btn btn-danger"><i class="icon-remove icon-white"></i> Cancelar</a>
                        </div>
                    </form>
                </div>
                <div class="span1"></div>                
            </div>
        </div>
        
        <footer class="footer">
            <div class="container">
                <small>
                    <img src="../../img/unicor_logo.png">
                    <strong>	Universidad de Cordoba. Facultad de Ingen&iacute;erias :: Departamento de Ingen&iacute;eria de Sistemas y Telecomunicaciones</strong>
                    <br>
                    Dise&ntilde;ado y Desarrollado por: Mar&iacute;a Alejandra Teher&aacute;n &amp; Daniela Mu&ntilde;oz De La Rosa &copy;
                </small>
            </div>
        </footer>
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/bootstrap.js"></script>
        <script type="text/javascript" src="js/bootstrap-collapse.js"></script>
    </body>
</html>
